package com.red.star.wechat.data.entity;

import com.red.star.wechat.data.entity.vo.ShopDetailVO;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 商品实体(商户海报我要上首页/新增商品/尖货)
 * @author nofish.yan@gmail.com
 * @date 2018/9/29.
 */
@Data
@NoArgsConstructor
@Table(name = "t_goods")
public class Goods extends BaseEntity {

    /**
     * 商品类类(来源): 1商户海报(我要上首页)
     */
    private Integer type;

    /**
     * 状态(暂无意义) 默认0
     */
    private Integer status;

    /**
     * 商户海报ID
     */
    private Integer merchantPosterId;

    /**
     * 商户ID
     */
    @Transient
    private Integer merchantId;

    /**
     * 商户名称
     */
    @Transient
    private String merchantName;

    /**
     * 品牌名称
     */
    @Transient
    private String brandName;

    /**
     * 海报内容
     */
    @Transient
    private String content;

    /**
     * 店铺名称
     */
    @Transient
    private String shopName;

    /**
     * 品牌logo
     */
    @Transient
    private String brandLogo;

    /**
     * 品牌标签
     */
    @Transient
    private List<String> brandTag;

    /**
     * 商品(商户海报)图片集合
     */
    @Transient
    private List<String> images;

    /**
     * 商品(商户海报)标签集合
     */
    @Transient
    private List<String> tags;

    /**
     * 商品名称
     */
    @Transient
    private String name;

    /**
     * 最低价格
     */
    @Transient
    private Double minPrice;

    /**
     * 龙翼店铺ID
     */
    @Transient
    private Integer merchantShopId;

    /**
     * 导购ID
     */
    @Transient
    private Integer employeeId;

    /**
     * 导购粉丝ID
     */
    @Transient
    private Integer bFansId;

    @Transient
    private ShopDetailVO shopDetail;

    /**
     * 品类ID
     */
    @Transient
    private Integer cateId;

    /**
     * 商场mallcode
     */
    @Transient
    private String mallCode;

    public Goods(Integer type, Integer merchantPosterId) {
        this.status = 0;
        this.type = type;
        this.merchantPosterId = merchantPosterId;
    }
}
